package com.th.supcom.pds.phamapply.client.service;

import java.util.List;
import java.util.Map;

import net.carefx.framework.container.client.exception.UiException;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.th.supcom.pds.phamapply.client.common.InpPhamApplyServiceFactory;
import com.th.supcom.pds.phamapply.client.model.InPharmacyReturnResult;
import com.th.supcom.pds.phamapply.client.model.InpPhamApplyDetailModel;

/**
 * InPharmacyReturn 服务接口.
 * 
 * 住院摆药请领明细.
 */
@RemoteServiceRelativePath (InpPhamApplyServiceFactory.BASE_URL + "inPharmacyReturn.do")
public interface InPharmacyReturnRpc extends RemoteService
{

    /**
     * 通过电子退药单查询退药明细
     * 
     * @param ApplyNo 请领号
     * @param patientId 患者ID
     * @return
     * @throws UiException 异常信息
     */
    public InPharmacyReturnResult getInpPhamApplyDetailByApplyNo (String applyNo, String patientId, String performedBy) throws UiException;

    /**
     * 
     * @param Model 退药明细
     * @throws UiException 界面异常
     */
    public void modifyInPhacyReturn (List <InpPhamApplyDetailModel> models, Map <String, Object> infoMap) throws UiException;

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
}